package com.chen.dao;

import com.chen.pojo.User;

import java.util.List;
import java.util.Map;

public interface UserMapper {
    List<User> getUserList();

    List<User> getUserLike(String name);
//根据ID查询用户
    User getUserById(int id);

    //添加用户
    int addUser(User user);


    int addUser2(Map<String,Object> user);

    //修改用户
    int updateUser(User user);

    //删除用户
    int deleteUser(int id);
}
